﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AgentTree.aspx.cs" Inherits="Yule8xWechat.Test.AgentTree" %>

<%@ Import Namespace="System.Data" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form action="AgentTree.aspx">
        <table>
            <tr><th>代理ID：</th><td><input type="text" name="uid" value="<%=uid > 0 ? uid.ToString() : string.Empty %>" /><%=nickname %></td></tr>
            <tr><th>月份</th><td><select name="month"><% for (int i = 0; i <= 12; i++) { Response.Write(string.Format("<option value='{0}'{1}>{0}</option>",i,(month==i?" selected='selected'":""))); } %></select></td></tr>
        </table>
        <button type="submit">查询</button>
    </form>
                <%
                    WriteTable();
                %>
</body>
</html>
